package site.brood.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import site.brood.user.pojo.entity.User;

import java.util.List;
import java.util.Set;

/**
 * 用户管理Service
 */
public interface IUserService extends IService<User> {

    List<String> selectRolesByUserId(Long userId);

    Set<String> selectMenuPermsByUserId(Long userId);

    boolean checkUsernameValid(String userName);

    boolean isAdmin(Long userId);

    boolean add(User user);
}